<html>
<head>
	<link href="<?php echo _get_cfg_path('admin_css')?>base.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo _get_cfg_path('admin_css')?>common.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo _get_cfg_path('admin_css')?>main.css" rel="stylesheet">
    <link href="<?php echo _get_cfg_path('admin_css')?>right.css" rel="stylesheet">
    <link href="<?php echo _get_cfg_path('admin_css')?>index.css" rel="stylesheet">
    <link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo _get_cfg_path('admin_css')?>../ueditor1_4_3/ueditor.config.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('admin_css')?>../ueditor1_4_3/ueditor.all.js"></script>
</head>

<body>

<div class="right_con common adduser">

	<a href="/admin/faq" class="topBtn">返回列表</a>
	<?php echo validation_errors('<div class="valid_error">', '</div>');?>
	<form action="/admin/faq/save<?php if( !empty($info['id']) ) echo '?id='. _get_key_val( $info['id'] ); ?>" method="post">

		<table class="addTable">
			<tbody>
			    <tr>
		          <td>&nbsp;</td>
		        </tr>
		        <tr>
		            <td height="25" align="right"><span class="tips">*</span> 类型：</td>
		            <td align="left" class="padL10">
		              <select name="type" style="width:320px;">
                        <option value="0">请选择</option>
                        <option value="1" <?php if ($info['type']&&$info['type']==1):?>selected="selected"<?php endif;?>>模特</option>
                        <option value="2" <?php if ($info['type']&&$info['type']==2):?>selected="selected"<?php endif;?>>顾客</option>
                      </select>
		            </td>
		        </tr>
		        <tr>
		          <td>&nbsp;</td>
		        </tr>
		        <tr>
		            <td height="25" align="right"><span class="tips">*</span> 问题：</td>
		            <td align="left" class="padL10"><textarea type="text" name="question" cols="50" rows="6"><?php if( !empty($info['question']) ) echo $info['question']; ?></textarea></td>
		        </tr>
		        <tr>
		          <td>&nbsp;</td>
		        </tr>
		        <tr>
		            <td height="25" align="right"><span class="tips">*</span> 答案：</td>
		            <td align="left" class="padL10"><textarea type="text" name="answer" cols="50" rows="6"><?php if( !empty($info['answer']) ) echo $info['answer']; ?></textarea></td>
		        </tr>
		        <tr>
		          <td>&nbsp;</td>
		        </tr>
				<tr>
		            <td></td>
		            <td class="padL10"><input type="submit" class="sub" value="提交"></td>
		        </tr>
		    </tbody>
		</table>
	</form>
</div>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.11.2.min.js"></script>
</body>
</html>